import request from "@/utils/request"

export function queryByPage(query) {
  return request({
    url: "/goods/queryByPage",
    method: "get",
    params: query
  })
}

export function getList(query) {
  return request({
    url: "/goods/getList",
    method: "get",
    params: query
  })
}

// 查询商品类型子分类
export function insert(query) {
  return request({
    url: "/goods/insert",
    method: "post",
    data: query
  })
}

export function update(query) {
	return request({
		url: "/goods/update",
		method: "post",
		data: query
	})
}

export function delByIds(query) {
  return request({
    url: "/goods/delByIds/" + query,
    method: "delete",
    data: query
  })
}